package com.wise.summer.v1.portal.content.webcolumns;

import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.SkipUserAuth;
import com.wise.framework.annotations.validation.NotNull;
import com.wise.framework.daoannotations.Column;
import com.wise.framework.summer.BasicSummer;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

import static com.wise.model.content.ContentErrMsgs.Err_001600250020;

@Getter
@Setter
@Publish
@ApiInfo("前台栏目列表")
@SkipUserAuth
public class ListWebColumns extends BasicSummer<List<ListWebColumns.Result>> {
	@ApiInfo("媒体聚焦1, 通知公告2, 新闻动态(大类)3, 中心党建(类别)4, 研究所党建5, 创新综合体党建6, 招聘(大类)7")
	@NotNull(msg = Err_001600250020)
	private Integer type;
	@Getter
	@Setter
	public static class Result {
		@Column("id")
		private String id;

		@ApiInfo("栏目名")
		@Column("column_name")
		private String columnName;

		@Column("alias")
		private String alias;


	}
}
